package service;

import java.util.List;

import entity.Easybuy_product;
import utils.PageUtils;
import web.pre.Product;

public interface EasyBuyProductService {
	PageUtils<Easybuy_product> products(int categoryId,int categorLevle,int currpage,int pageSize);
	
	
	Easybuy_product ProductDetails(int id);


	int subStock(int productId, int quantity);
	
	Easybuy_product getProductById(int id);
	
	PageUtils<Easybuy_product> Search(String name,int currpage,int pageSize);
	
	PageUtils<Easybuy_product> productList(int pageindex, int pageSize);
	
	int addProduct(Easybuy_product pro);

	int updateProduct(Easybuy_product pro);
	
	int updateProduct(int id);
	
	int findCategoryLevelId(int categoryLevelId,int type);
	
	Easybuy_product productId(int productId);
}
